﻿using System.Collections.Generic;
using System.Xml.Serialization;
using Ant.Interface.Mef.Model.Catalogs.CatalogType;

namespace Ant.Interface.Mef.Model.Catalogs
{
    /// <summary>
    /// 组件配置项。
    /// </summary>
    [XmlInclude(typeof(DirectoryCatalogConfig))]
    [XmlInclude(typeof(AssemblyCatalogConfig))]
    [XmlInclude(typeof(TypeCatalogConfig))]
    public class CatalogConfigs
    {
        #region "Property"

        /// <summary>
        /// 目录配置集合。
        /// </summary>
        [XmlArrayItem("CatalogConfig")]
        public List<CatalogConfigBase> Catalogs { get; set; }

        #endregion "Property"
    }
}